package com.financing.platform.dto;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import com.financing.platform.common.ResultCode;
import com.financing.platform.common.ResultMap;
import com.financing.platform.util.BigDecimalUtil;
import com.financing.platform.util.Dict;
import com.financing.platform.util.StringUtil;

/**
 * @author CUIMO
 * 订单流程改造
 */
public class OrderByGaiZaoDTO extends BaseDTO{

	
	private static final long serialVersionUID = 5839707266926045236L;

	/**
	 * 订单ID
	 */
	private String id;
	
	/**
	 * 订单编号
	 */
	private String oCode;
	
	/**
	 * 订单金额
	 */
	private BigDecimal oAmount;
	
	/**
	 * 订单前端状态
	 */
	private Integer oStatus;
	
	/**
	 * 订单后端状态
	 */
	private Integer oBackStatus;
	
	/**
	 * 产品ID
	 */
	private Integer oProjectId;
	
	/**
	 * 产品代码
	 */
	private String oProjectCode;
	
	/**
	 * 产品简称
	 */
	private String oPName;
	
	/**
	 * 产品类型
	 */
	private String oPType;
	/**
	 * 产品类型 多个
	 */
	private String pTypeList;
	/**
	 * 理财师FAID
	 */
	private String oFAId;
	
	/**
	 * 客户ID
	 */
	private Integer oCId;
	
	/**
	 * 客户姓名
	 */
	private String oCName;
	
	/**
	 * 前端核心价
	 */
	private BigDecimal oCorePrice;
	/**
	 * 前端核心返佣额
	 */
	private BigDecimal oCoreRebate;
	
	/**
	 * 后端核心价
	 */
	private BigDecimal oBackCorePrice;
	/**
	 * 后端核心返佣额
	 */
	private BigDecimal oBackCoreRebate;
	
	/**
	 * 前端成本价
	 */
	private BigDecimal oCostPrice;
	/**
	 * 前端成本返佣额
	 */
	private BigDecimal oCostRebate;
	
	/**
	 * 后端成本价
	 */
	private BigDecimal oBackCostPrice;
	/**
	 * 后端成本返佣额
	 */
	private BigDecimal oBackCostRebate;
	
	/**
	 * 前端销售机构价
	 */
	private BigDecimal oSellingPrice;
	/**
	 * 前端销售机构返佣额
	 */
	private BigDecimal oSellingRebate;
	
	/**
	 * 后端销售机构价
	 */
	private BigDecimal oBackSellingPrice;
	/**
	 * 后端销售机构返佣额
	 */
	private BigDecimal oBackSellingRebate;
	
	/**
	 * 返佣率 前端挂网价
	 */
	private BigDecimal oRebateRate;
	/**
	 * 返佣金额 前端挂网返佣率
	 */
	private BigDecimal oRebateAmount;
	
	/**
	 * 后端挂网价
	 */
	private BigDecimal oBackRebateRate;
	/**
	 * 后端挂网返佣额
	 */
	private BigDecimal oBackRebateAmount;
	
	/**
	 * 前端成交价
	 */
	private BigDecimal oTransactionPrice;
	/**
	 * 前端成交返佣额
	 */
	private BigDecimal oTransactionRebate;
	
	/**
	 * 后端成交价
	 */
	private BigDecimal oBackTransactionPrice;
	/**
	 * 后端成交返佣额
	 */
	private BigDecimal oBackTransactionRebate;
	
	/**
	 * 上游打款人
	 */
	private String upstreamHitman;
	/**
	 * 上游打款人帐号
	 */
	private String upstreamHitmanNum;
	
	/**
	 *  收款人
	 */
	private String oFARealName;
	/**
	 * 收款人帐号
	 */
	private String oFACardNum;
	
	/**
	 * 寄出合同编码
	 */
	private String sendContractNum;
	/**
	 * 收回合同编码
	 */
	private String receiveContractNum;

	/**
	 * 确认前端返佣额 上游前端结拥额
	 */
	private BigDecimal confirmForntAmount;

	/**
	 * 确认后端返佣额 上游后端结拥额
	 */
	private BigDecimal confirmBackAmount;
	/**
	 * 确认其他打款额
	 */
	private BigDecimal confirmOtherAmount;
	/**
	 * 确认其他打款额说明
	 */
	private String comfirmOtherSectionDesc;
	/**
	 * 财务前端结拥
	 */
	private BigDecimal oFinanceFrontRebate;
	/**
	 * 财务后端结拥
	 */
	private BigDecimal oFinanceBackRebate;
	/**
	 * 财务活动打款
	 */
	private BigDecimal oActivityAmount;
	/**
	 * 财务活动打款说明
	 */
	private String oPlaySectionDesc;
	/**
	 * 财务其他打款额
	 */
	private BigDecimal oFinanceOtherAmount;
	/**
	 * 财务其他打款额说明
	 */
	private String oFinancOtherAmountDesc;
	/**
	 * 结款类型 01:产品成立结；02：到款立结
	 */
	private String oKnotType;
	/**
	 * 合同凭证URL
	 */
	private String oFrontContractDocument;
	/**
	 * 前端打款凭条URL
	 */
	private String oContractDocument;
	/**
	 * 后端打款凭条URL
	 */
	private String oBackContractDocument;
	/**
	 * 备注
	 */
	private String oRemark;
	/**
	 * 订单取消原因
	 */
	private String oCancelReason;
	/**
	 * 拉黑状态 活动订单是否有效
	 */
	private String oDefriendStatus;
	
	/**
	 * 订单跟进人id
	 */
	private String oFlowerId;
	
	/**
	 * 订单跟进人
	 */
	private String oFlowerName;
	
	/**
	 * 订单负责人id
	 */
	private String oManagerId;
	/**
	 * 订单负责人
	 */
	private String oManagerName;
	/**
	 * 预期年华收益
	 */
	private String oAnnualRevenue;
	
	private String oULoginName;
	/**
	 * 订单相关流水信息 TODO
	 */
	private String yuYueChengGongBy;
	
	private Date yuYueChengGongDate;
	
	private String heTongJiChuBy;
	
	private Date heTongJiChuDate;
	
	private String queRenDaKuanBy;
	
	private Date queRenDaKuanDate;
	
	private String qianYueDaKuanBy;
	
	private Date qianYueDaKuanDate;
	
	private String yongJinDaoZhangBy;
	
	private Date yongJinDaoZhangDate;
	
	private String caiWuJieYongBy;
	
	private Date caiWuJieYongDate;
	
	private String queRenFanYongBy;
	
	private Date queRenFanYongDate;
	
	private String queRenHeTongBy;
	
	private Date queRenHeTongDate;
	
	private String houDuanYongJinDaoZhangBy;
	
	private Date houDuanYongJinDaoZhangDate;
	
	private String houDuanCaiWuJieYongBy;
	
	private Date houDuanCaiWuJieYongDate;
	
	private String houDuanQueRenFanYongBy;
	
	private Date houDuanQueRenFanYongDate;
	
	private String jieShuJiaoYiBy;
	
	private Date jieShuJiaoYiDate;
	
	private String quXiaoJiaoYiBy;
	
	private Date quXiaoJiaoYiDate;
	
	/**
	 * 部门名称
	 */
	private int departmentName;
	
	/**
	 * 进账金额
	 */
	private BigDecimal incomeAmount;
	/**
	 * 出账金额
	 */
	private BigDecimal expenditureAmount;
	/**
	 * 前端盈利
	 */
	private BigDecimal frontProfitAmount;
	/**
	 * 总盈利
	 */
	private BigDecimal allProfitAmount;
	
	// ——————筛选条件相关——————
	/**
	 * 列表类型 
	 * 01为未完成的订单，02为有效订单，03为后端订单，04为取消订单。
	 */
	private String orderCtrType;
	private String isFrontCtrType;
	private String isSpecialCtrType;
	private String isBackCtrType;
	private String idsByorderCtrType;

	private boolean backApplyStatus;
	
	/**
	 * 多状态码集合
	 */
	private String oStatusCollection;
	
	/**
	 * 多后端状态码集合
	 */
	private String oBackStatusCollection;
	
	/**
	 * 是否是列表查询
	 */
	private String isListQuery;
	/**
	 * 查询时，是否选择查询没有订单管理员
	 */
	private String isnoManagerUser;
	/**
	 * 创建时间-开始
	 */
	private String  createDateStart;
	/**
	 * 创建时间-结束
	 */
	private String  createDateEnd;
	/**
	 * 订单金额区间-开始
	 */
	private BigDecimal oAmountStart;
	/**
	 * 订单金额区间-结束
	 */
	private BigDecimal oAmountEnd;
	
	/**
	 * 财务打款时间-开始
	 */
	private String  caiWuJieYongDateStart;
	/**
	 * 财务打款时间-结束
	 */
	private String  caiWuJieYongDateEnd;
	
	/**
	 *是否为协议价
	 */
	private String isAgreement;
	
	/**
	 * 石柱 前端需要判断状态
	 */
	private String shiZhuFlag;
	
	/**
	 * 列表页 订单资料上传标志
	 */
	private String phoFlag;
	
	private String oMediaSource;//媒体来源
	
	// 有单相关
	/**
	 * 订单承销人ID
	 */
	private String oOwnerId;
	/**
	 * 有单竞价返佣额
	 */
	private BigDecimal oYouDanRebate;
	/**
	 * 有单价
	 */
	private BigDecimal oYouDanPrice;
	/**
	 * 有单_收到竞价佣金
	 */
	private BigDecimal oYouDanReceiverRebate;
	
	/**
	 * 前端佣金线下打款银行
	 */
	private String oRebateBankId;
	
	/**
	 * 后端佣金线下打款银行
	 */
	private String oBackRebateBankId;
	
	/**
	 * 后端线下打款银行账户姓名
	 */
	private String oBackRebateBankCardHolder;
	
	/**
	 * 前端线下打款银行账户姓名
	 */
	private String oRebateBankCardHolder;
	
	/**
	 * 前端线下打款银行账户卡号
	 */
	private String oRebateBankCardNumber;
	
	/**
	 * 后端线下打款银行账户卡号
	 */
	private String oBackRebateBankCardNumber;
	
	/**
	 * 前端结佣佣金方式，1：前端线上自提，2，前端线下打款
	 */
	private String oRebateType;
	
	/**
	 * 后端结佣佣金方式，1：前端线上自提，2，前端线下打款
	 */
	private String oBackRebateType;
	
	/**
	 * 有单结佣佣金方式，1：前端线上自提，2，前端线下打款
	 */
	private String oYouDanRebateType;
	
	/**
	 * 前端佣金提现状态，01：冻结，02:可提现，03：提现中，04：提现成功，05：提现失败，06：失败:，07：支付完毕
	 */
	private String oRebateOperateType;
	/**
	 * 后端佣金提现状态，01：冻结，02:可提现，03：提现中，04：提现成功，05：提现失败，06：失败:，07：支付完毕
	 */
	private String oBackRebateOperateType;
	/**
	 * 有单佣金提现状态，01：冻结，02:可提现，03：提现中，04：提现成功，05：提现失败，06：失败:，07：支付完毕
	 */
	private String oYouDanOperateType;

	private String searchCriteria;//搜索条件
	private String searchCriteriaQD;//搜索条件-渠道
	private String searchCriteriaCP;//搜索条件-产品
	 private String contractStatus;//合同状态
	private String oLocation ;//订单所在地
	private List<String> systemUserIds;//获取名下机构

	public List<String> getSystemUserIds() {
		return systemUserIds;
	}

	public void setSystemUserIds(List<String> systemUserIds) {
		this.systemUserIds = systemUserIds;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public Integer getoCId() {
		return oCId;
	}

	public void setoCId(Integer oCId) {
		this.oCId = oCId;
	}

	public Integer getoProjectId() {
		return oProjectId;
	}

	public void setoProjectId(Integer oProjectId) {
		this.oProjectId = oProjectId;
	}

	public String getoLocation() {
		return oLocation;
	}

	public void setoLocation(String oLocation) {
		this.oLocation = oLocation;
	}

	public BigDecimal getoAmount() {
		return oAmount;
	}

	public void setoAmount(BigDecimal oAmount) {
		this.oAmount = oAmount;
	}


	public Integer getoStatus() {
		return oStatus;
	}

	public void setoStatus(Integer oStatus) {
		this.oStatus = oStatus;
	}

	public String getoRemark() {
		return oRemark;
	}

	public void setoRemark(String oRemark) {
		this.oRemark = oRemark;
	}

	public BigDecimal getoRebateRate() {
		return oRebateRate;
	}

	public void setoRebateRate(BigDecimal oRebateRate) {
		this.oRebateRate = oRebateRate;
	}

	public BigDecimal getoRebateAmount() {
		return oRebateAmount;
	}

	public void setoRebateAmount(BigDecimal oRebateAmount) {
		this.oRebateAmount = oRebateAmount;
	}

	public String getoCode() {
		return oCode;
	}

	public void setoCode(String oCode) {
		this.oCode = oCode;
	}

	public BigDecimal getoSellingPrice() {
		return oSellingPrice;
	}

	public void setoSellingPrice(BigDecimal oSellingPrice) {
		this.oSellingPrice = oSellingPrice;
	}

	public BigDecimal getoSellingRebate() {
		return oSellingRebate;
	}

	public void setoSellingRebate(BigDecimal oSellingRebate) {
		this.oSellingRebate = oSellingRebate;
	}

	public BigDecimal getoCostPrice() {
		return oCostPrice;
	}

	public void setoCostPrice(BigDecimal oCostPrice) {
		this.oCostPrice = oCostPrice;
	}

	public BigDecimal getoCostRebate() {
		return oCostRebate;
	}

	public void setoCostRebate(BigDecimal oCostRebate) {
		this.oCostRebate = oCostRebate;
	}

	public BigDecimal getoCorePrice() {
		return oCorePrice;
	}

	public void setoCorePrice(BigDecimal oCorePrice) {
		this.oCorePrice = oCorePrice;
	}

	public BigDecimal getoCoreRebate() {
		return oCoreRebate;
	}

	public void setoCoreRebate(BigDecimal oCoreRebate) {
		this.oCoreRebate = oCoreRebate;
	}

	public BigDecimal getoTransactionPrice() {
		return oTransactionPrice;
	}

	public void setoTransactionPrice(BigDecimal oTransactionPrice) {
		this.oTransactionPrice = oTransactionPrice;
	}

	public BigDecimal getoTransactionRebate() {
		return oTransactionRebate;
	}

	public void setoTransactionRebate(BigDecimal oTransactionRebate) {
		this.oTransactionRebate = oTransactionRebate;
	}

	public String getoDefriendStatus() {
		return oDefriendStatus;
	}

	public void setoDefriendStatus(String oDefriendStatus) {
		this.oDefriendStatus = oDefriendStatus;
	}

	public String getpName() {
		return oPName;
	}

	public void setpName(String oPName) {
		this.oPName = oPName;
	}

	public String getoCName() {
		return oCName;
	}

	public void setoCName(String oCName) {
		this.oCName = oCName;
	}

	public BigDecimal getoBackCorePrice() {
		return oBackCorePrice;
	}

	public void setoBackCorePrice(BigDecimal oBackCorePrice) {
		this.oBackCorePrice = oBackCorePrice;
	}

	public BigDecimal getoBackCoreRebate() {
		return oBackCoreRebate;
	}

	public void setoBackCoreRebate(BigDecimal oBackCoreRebate) {
		this.oBackCoreRebate = oBackCoreRebate;
	}

	public BigDecimal getoBackCostPrice() {
		return oBackCostPrice;
	}

	public void setoBackCostPrice(BigDecimal oBackCostPrice) {
		this.oBackCostPrice = oBackCostPrice;
	}

	public BigDecimal getoBackCostRebate() {
		return oBackCostRebate;
	}

	public void setoBackCostRebate(BigDecimal oBackCostRebate) {
		this.oBackCostRebate = oBackCostRebate;
	}

	public BigDecimal getoBackSellingPrice() {
		return oBackSellingPrice;
	}

	public void setoBackSellingPrice(BigDecimal oBackSellingPrice) {
		this.oBackSellingPrice = oBackSellingPrice;
	}

	public BigDecimal getoBackSellingRebate() {
		return oBackSellingRebate;
	}

	public void setoBackSellingRebate(BigDecimal oBackSellingRebate) {
		this.oBackSellingRebate = oBackSellingRebate;
	}

	public BigDecimal getoBackRebateRate() {
		return oBackRebateRate;
	}

	public void setoBackRebateRate(BigDecimal oBackRebateRate) {
		this.oBackRebateRate = oBackRebateRate;
	}

	public BigDecimal getoBackRebateAmount() {
		return oBackRebateAmount;
	}

	public void setoBackRebateAmount(BigDecimal oBackRebateAmount) {
		this.oBackRebateAmount = oBackRebateAmount;
	}

	public BigDecimal getoBackTransactionPrice() {
		return oBackTransactionPrice;
	}

	public void setoBackTransactionPrice(BigDecimal oBackTransactionPrice) {
		this.oBackTransactionPrice = oBackTransactionPrice;
	}

	public BigDecimal getoBackTransactionRebate() {
		return oBackTransactionRebate;
	}

	public void setoBackTransactionRebate(BigDecimal oBackTransactionRebate) {
		this.oBackTransactionRebate = oBackTransactionRebate;
	}

	public String getUpstreamHitman() {
		return upstreamHitman;
	}

	public void setUpstreamHitman(String upstreamHitman) {
		this.upstreamHitman = upstreamHitman;
	}

	public String getUpstreamHitmanNum() {
		return upstreamHitmanNum;
	}

	public void setUpstreamHitmanNum(String upstreamHitmanNum) {
		this.upstreamHitmanNum = upstreamHitmanNum;
	}

	public String getoFARealName() {
		return oFARealName;
	}

	public void setoFARealName(String oFARealName) {
		this.oFARealName = oFARealName;
	}

	public String getoFACardNum() {
		return oFACardNum;
	}

	public void setoFACardNum(String oFACardNum) {
		this.oFACardNum = oFACardNum;
	}

	public String getSendContractNum() {
		return sendContractNum;
	}

	public void setSendContractNum(String sendContractNum) {
		this.sendContractNum = sendContractNum;
	}

	public String getReceiveContractNum() {
		return receiveContractNum;
	}

	public void setReceiveContractNum(String receiveContractNum) {
		this.receiveContractNum = receiveContractNum;
	}

	public BigDecimal getConfirmForntAmount() {
		return confirmForntAmount;
	}

	public void setConfirmForntAmount(BigDecimal confirmForntAmount) {
		this.confirmForntAmount = confirmForntAmount;
	}

	public BigDecimal getConfirmBackAmount() {
		return confirmBackAmount;
	}

	public void setConfirmBackAmount(BigDecimal confirmBackAmount) {
		this.confirmBackAmount = confirmBackAmount;
	}

	public BigDecimal getConfirmOtherAmount() {
		return confirmOtherAmount;
	}

	public void setConfirmOtherAmount(BigDecimal confirmOtherAmount) {
		this.confirmOtherAmount = confirmOtherAmount;
	}

	public String getComfirmOtherSectionDesc() {
		return comfirmOtherSectionDesc;
	}

	public void setComfirmOtherSectionDesc(String comfirmOtherSectionDesc) {
		this.comfirmOtherSectionDesc = comfirmOtherSectionDesc;
	}

	public BigDecimal getoFinanceFrontRebate() {
		return oFinanceFrontRebate;
	}

	public void setoFinanceFrontRebate(BigDecimal oFinanceFrontRebate) {
		this.oFinanceFrontRebate = oFinanceFrontRebate;
	}

	public BigDecimal getoFinanceBackRebate() {
		return oFinanceBackRebate;
	}

	public void setoFinanceBackRebate(BigDecimal oFinanceBackRebate) {
		this.oFinanceBackRebate = oFinanceBackRebate;
	}

	public BigDecimal getoActivityAmount() {
		return oActivityAmount;
	}

	public void setoActivityAmount(BigDecimal oActivityAmount) {
		this.oActivityAmount = oActivityAmount;
	}

	public String getoPlaySectionDesc() {
		return oPlaySectionDesc;
	}

	public void setoPlaySectionDesc(String oPlaySectionDesc) {
		this.oPlaySectionDesc = oPlaySectionDesc;
	}

	public BigDecimal getoFinanceOtherAmount() {
		return oFinanceOtherAmount;
	}

	public void setoFinanceOtherAmount(BigDecimal oFinanceOtherAmount) {
		this.oFinanceOtherAmount = oFinanceOtherAmount;
	}

	public String getoFinancOtherAmountDesc() {
		return oFinancOtherAmountDesc;
	}

	public void setoFinancOtherAmountDesc(String oFinancOtherAmountDesc) {
		this.oFinancOtherAmountDesc = oFinancOtherAmountDesc;
	}

	public String getoKnotType() {
		return oKnotType;
	}

	public void setoKnotType(String oKnotType) {
		this.oKnotType = oKnotType;
	}

	public String getoFrontContractDocument() {
		return oFrontContractDocument;
	}

	public void setoFrontContractDocument(String oFrontContractDocument) {
		this.oFrontContractDocument = oFrontContractDocument;
	}

	public String getoContractDocument() {
		return oContractDocument;
	}

	public void setoContractDocument(String oContractDocument) {
		this.oContractDocument = oContractDocument;
	}

	public String getoBackContractDocument() {
		return oBackContractDocument;
	}

	public void setoBackContractDocument(String oBackContractDocument) {
		this.oBackContractDocument = oBackContractDocument;
	}

	public String getoFlowerName() {
		return oFlowerName;
	}

	public void setoFlowerName(String oFlowerName) {
		this.oFlowerName = oFlowerName;
	}

	public String getoManagerName() {
		return oManagerName;
	}

	public void setoManagerName(String oManagerName) {
		this.oManagerName = oManagerName;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	public String getoAnnualRevenue() {
		return oAnnualRevenue;
	}

	public void setoAnnualRevenue(String oAnnualRevenue) {
		this.oAnnualRevenue = oAnnualRevenue;
	}

	public String getoPName() {
		return oPName;
	}

	public void setoPName(String oPName) {
		this.oPName = oPName;
	}

	public String getoFlowerId() {
		return oFlowerId;
	}

	public void setoFlowerId(String oFlowerId) {
		this.oFlowerId = oFlowerId;
	}

	public String getoManagerId() {
		return oManagerId;
	}

	public void setoManagerId(String oManagerId) {
		this.oManagerId = oManagerId;
	}

	public String getoPType() {
		return oPType;
	}

	public void setoPType(String oPType) {
		this.oPType = oPType;
	}

	public Integer getoBackStatus() {
		return oBackStatus;
	}

	public void setoBackStatus(Integer oBackStatus) {
		this.oBackStatus = oBackStatus;
	}

	public String getoCancelReason() {
		return oCancelReason;
	}

	public void setoCancelReason(String oCancelReason) {
		this.oCancelReason = oCancelReason;
	}

	public void setOrderCtrType(String orderCtrType) {
		this.orderCtrType = orderCtrType;
	}

	public String getIsnoManagerUser() {
		return isnoManagerUser;
	}

	public void setIsnoManagerUser(String isnoManagerUser) {
		this.isnoManagerUser = isnoManagerUser;
	}

	public String getCreateDateStart() {
		return createDateStart;
	}

	public void setCreateDateStart(String createDateStart) {
		this.createDateStart = createDateStart;
	}

	public String getCreateDateEnd() {
		return createDateEnd;
	}

	public void setCreateDateEnd(String createDateEnd) {
		this.createDateEnd = createDateEnd;
	}

	public BigDecimal getoAmountStart() {
		return oAmountStart;
	}

	public void setoAmountStart(BigDecimal oAmountStart) {
		this.oAmountStart = oAmountStart;
	}

	public BigDecimal getoAmountEnd() {
		return oAmountEnd;
	}

	public void setoAmountEnd(BigDecimal oAmountEnd) {
		this.oAmountEnd = oAmountEnd;
	}

	public int getDepartmentName() {
		return departmentName;
	}

	public void setDepartmentName(int departmentName) {
		this.departmentName = departmentName;
	}
	
	public String getIsListQuery() {
		return isListQuery;
	}

	public void setIsListQuery(String isListQuery) {
		this.isListQuery = isListQuery;
	}
	
	public String getYuYueChengGongBy() {
		return yuYueChengGongBy;
	}

	public void setYuYueChengGongBy(String yuYueChengGongBy) {
		this.yuYueChengGongBy = yuYueChengGongBy;
	}

	public Date getYuYueChengGongDate() {
		return yuYueChengGongDate;
	}

	public void setYuYueChengGongDate(Date yuYueChengGongDate) {
		this.yuYueChengGongDate = yuYueChengGongDate;
	}

	public String getHeTongJiChuBy() {
		return heTongJiChuBy;
	}

	public void setHeTongJiChuBy(String heTongJiChuBy) {
		this.heTongJiChuBy = heTongJiChuBy;
	}

	public Date getHeTongJiChuDate() {
		return heTongJiChuDate;
	}

	public void setHeTongJiChuDate(Date heTongJiChuDate) {
		this.heTongJiChuDate = heTongJiChuDate;
	}

	public String getQueRenDaKuanBy() {
		return queRenDaKuanBy;
	}

	public void setQueRenDaKuanBy(String queRenDaKuanBy) {
		this.queRenDaKuanBy = queRenDaKuanBy;
	}

	public Date getQueRenDaKuanDate() {
		return queRenDaKuanDate;
	}

	public void setQueRenDaKuanDate(Date queRenDaKuanDate) {
		this.queRenDaKuanDate = queRenDaKuanDate;
	}

	public String getQianYueDaKuanBy() {
		return qianYueDaKuanBy;
	}

	public void setQianYueDaKuanBy(String qianYueDaKuanBy) {
		this.qianYueDaKuanBy = qianYueDaKuanBy;
	}

	public Date getQianYueDaKuanDate() {
		return qianYueDaKuanDate;
	}

	public void setQianYueDaKuanDate(Date qianYueDaKuanDate) {
		this.qianYueDaKuanDate = qianYueDaKuanDate;
	}

	public String getYongJinDaoZhangBy() {
		return yongJinDaoZhangBy;
	}

	public void setYongJinDaoZhangBy(String yongJinDaoZhangBy) {
		this.yongJinDaoZhangBy = yongJinDaoZhangBy;
	}

	public Date getYongJinDaoZhangDate() {
		return yongJinDaoZhangDate;
	}

	public void setYongJinDaoZhangDate(Date yongJinDaoZhangDate) {
		this.yongJinDaoZhangDate = yongJinDaoZhangDate;
	}

	public String getCaiWuJieYongBy() {
		return caiWuJieYongBy;
	}

	public void setCaiWuJieYongBy(String caiWuJieYongBy) {
		this.caiWuJieYongBy = caiWuJieYongBy;
	}

	public Date getCaiWuJieYongDate() {
		return caiWuJieYongDate;
	}

	public void setCaiWuJieYongDate(Date caiWuJieYongDate) {
		this.caiWuJieYongDate = caiWuJieYongDate;
	}

	public String getQueRenFanYongBy() {
		return queRenFanYongBy;
	}

	public void setQueRenFanYongBy(String queRenFanYongBy) {
		this.queRenFanYongBy = queRenFanYongBy;
	}

	public Date getQueRenFanYongDate() {
		return queRenFanYongDate;
	}

	public void setQueRenFanYongDate(Date queRenFanYongDate) {
		this.queRenFanYongDate = queRenFanYongDate;
	}

	public String getQueRenHeTongBy() {
		return queRenHeTongBy;
	}

	public void setQueRenHeTongBy(String queRenHeTongBy) {
		this.queRenHeTongBy = queRenHeTongBy;
	}

	public Date getQueRenHeTongDate() {
		return queRenHeTongDate;
	}

	public void setQueRenHeTongDate(Date queRenHeTongDate) {
		this.queRenHeTongDate = queRenHeTongDate;
	}

	public String getHouDuanYongJinDaoZhangBy() {
		return houDuanYongJinDaoZhangBy;
	}

	public void setHouDuanYongJinDaoZhangBy(String houDuanYongJinDaoZhangBy) {
		this.houDuanYongJinDaoZhangBy = houDuanYongJinDaoZhangBy;
	}

	public Date getHouDuanYongJinDaoZhangDate() {
		return houDuanYongJinDaoZhangDate;
	}

	public void setHouDuanYongJinDaoZhangDate(Date houDuanYongJinDaoZhangDate) {
		this.houDuanYongJinDaoZhangDate = houDuanYongJinDaoZhangDate;
	}

	public String getHouDuanCaiWuJieYongBy() {
		return houDuanCaiWuJieYongBy;
	}

	public void setHouDuanCaiWuJieYongBy(String houDuanCaiWuJieYongBy) {
		this.houDuanCaiWuJieYongBy = houDuanCaiWuJieYongBy;
	}

	public Date getHouDuanCaiWuJieYongDate() {
		return houDuanCaiWuJieYongDate;
	}

	public void setHouDuanCaiWuJieYongDate(Date houDuanCaiWuJieYongDate) {
		this.houDuanCaiWuJieYongDate = houDuanCaiWuJieYongDate;
	}

	public String getHouDuanQueRenFanYongBy() {
		return houDuanQueRenFanYongBy;
	}

	public void setHouDuanQueRenFanYongBy(String houDuanQueRenFanYongBy) {
		this.houDuanQueRenFanYongBy = houDuanQueRenFanYongBy;
	}

	public Date getHouDuanQueRenFanYongDate() {
		return houDuanQueRenFanYongDate;
	}

	public void setHouDuanQueRenFanYongDate(Date houDuanQueRenFanYongDate) {
		this.houDuanQueRenFanYongDate = houDuanQueRenFanYongDate;
	}

	public String getJieShuJiaoYiBy() {
		return jieShuJiaoYiBy;
	}

	public void setJieShuJiaoYiBy(String jieShuJiaoYiBy) {
		this.jieShuJiaoYiBy = jieShuJiaoYiBy;
	}

	public Date getJieShuJiaoYiDate() {
		return jieShuJiaoYiDate;
	}

	public void setJieShuJiaoYiDate(Date jieShuJiaoYiDate) {
		this.jieShuJiaoYiDate = jieShuJiaoYiDate;
	}

	public String getoProjectCode() {
		return oProjectCode;
	}

	public void setoProjectCode(String oProjectCode) {
		this.oProjectCode = oProjectCode;
	}

	public String getQuXiaoJiaoYiBy() {
		return quXiaoJiaoYiBy;
	}

	public void setQuXiaoJiaoYiBy(String quXiaoJiaoYiBy) {
		this.quXiaoJiaoYiBy = quXiaoJiaoYiBy;
	}

	public Date getQuXiaoJiaoYiDate() {
		return quXiaoJiaoYiDate;
	}

	public void setQuXiaoJiaoYiDate(Date quXiaoJiaoYiDate) {
		this.quXiaoJiaoYiDate = quXiaoJiaoYiDate;
	}
	
	public String getCaiWuJieYongDateStart() {
		return caiWuJieYongDateStart;
	}

	public void setCaiWuJieYongDateStart(String caiWuJieYongDateStart) {
		this.caiWuJieYongDateStart = caiWuJieYongDateStart;
	}

	public String getCaiWuJieYongDateEnd() {
		return caiWuJieYongDateEnd;
	}

	public void setCaiWuJieYongDateEnd(String caiWuJieYongDateEnd) {
		this.caiWuJieYongDateEnd = caiWuJieYongDateEnd;
	}

	public String getoULoginName() {
		return oULoginName;
	}

	public void setoULoginName(String oULoginName) {
		this.oULoginName = oULoginName;
	}

	public String getIsBackCtrType() {
		return isBackCtrType;
	}

	public void setIsBackCtrType(String isBackCtrType) {
		this.isBackCtrType = isBackCtrType;
	}

	public String getIsFrontCtrType() {
		return isFrontCtrType;
	}

	public void setIsFrontCtrType(String isFrontCtrType) {
		this.isFrontCtrType = isFrontCtrType;
	}

	public String getOrderCtrType() {
		return orderCtrType;
	}
	
	public void resetCoreData(){
		this.oCorePrice = null;
		this.oCoreRebate= null;
		this.oCostRebate= null;
		this.orderCtrType= null;
	}
	
	public BigDecimal getIncomeAmount() {
		return incomeAmount;
	}

	public void setIncomeAmount(BigDecimal incomeAmount) {
		this.incomeAmount = incomeAmount;
	}

	public BigDecimal getExpenditureAmount() {
		return expenditureAmount;
	}

	public void setExpenditureAmount(BigDecimal expenditureAmount) {
		this.expenditureAmount = expenditureAmount;
	}
	
	public BigDecimal getFrontProfitAmount() {
		return frontProfitAmount;
	}

	public void setFrontProfitAmount(BigDecimal frontProfitAmount) {
		this.frontProfitAmount = frontProfitAmount;
	}

	public BigDecimal getAllProfitAmount() {
		return allProfitAmount;
	}

	public void setAllProfitAmount(BigDecimal allProfitAmount) {
		this.allProfitAmount = allProfitAmount;
	}
	
	public String getIsSpecialCtrType() {
		return isSpecialCtrType;
	}

	public void setIsSpecialCtrType(String isSpecialCtrType) {
		this.isSpecialCtrType = isSpecialCtrType;
	}
	
	public String getoStatusCollection() {
		return oStatusCollection;
	}

	public void setoStatusCollection(String oStatusCollection) {
		this.oStatusCollection = oStatusCollection;
	}

	public String getoBackStatusCollection() {
		return oBackStatusCollection;
	}

	public void setoBackStatusCollection(String oBackStatusCollection) {
		this.oBackStatusCollection = oBackStatusCollection;
	}
	
	public String getpTypeList() {
		return pTypeList;
	}

	public void setpTypeList(String pTypeList) {
		this.pTypeList = pTypeList;
	}

	public String getIsAgreement() {
		return isAgreement;
	}

	public void setIsAgreement(String isAgreement) {
		this.isAgreement = isAgreement;
	}
	
	public String getShiZhuFlag() {
		return shiZhuFlag;
	}

	public void setShiZhuFlag(String shiZhuFlag) {
		this.shiZhuFlag = shiZhuFlag;
	}
	
	public String getPhoFlag() {
		return phoFlag;
	}

	public void setPhoFlag(String phoFlag) {
		this.phoFlag = phoFlag;
	}

	public void calculateProfitAmount(){
		try {
			// 前端盈利=上游前端结款额+上游其他结款额-财务前端结佣-活动打款额-其他打款额
			this.frontProfitAmount =  this.confirmForntAmount.add(this.confirmOtherAmount).subtract(this.oFinanceFrontRebate)
					.subtract(this.oActivityAmount).subtract(this.oFinanceOtherAmount);
			// 全部盈利=前端盈利+上游后端结款额 - 财务结佣(后端)
			this.allProfitAmount = this.frontProfitAmount.add(BigDecimalUtil.getValue(this.confirmBackAmount)).subtract(BigDecimalUtil.getValue(this.oFinanceBackRebate));
		} catch (NullPointerException e) {
			this.frontProfitAmount = new BigDecimal(0);
			this.allProfitAmount = new BigDecimal(0);
		}
	}
	public void calculateIncomeAndExpenditure(){
		try {
			// 进账金额=结款额+结款额（后端）+其他结款额
			this.incomeAmount = this.confirmForntAmount.add(BigDecimalUtil.getValue(this.confirmBackAmount)).add(this.confirmOtherAmount);
			// 出账金额=财务结佣+财务结佣(后端)+活动打款额+其他打款额
			this.expenditureAmount =  this.oFinanceFrontRebate.add(BigDecimalUtil.getValue(this.oFinanceBackRebate)).add(this.oActivityAmount).add(this.oFinanceOtherAmount);
		} catch (NullPointerException e) {
			this.incomeAmount = new BigDecimal(0);
			this.expenditureAmount = new BigDecimal(0);
		}
	}

    public String getIdsByorderCtrType() {
        return idsByorderCtrType;
    }

    public void setIdsByorderCtrType(String idsByorderCtrType) {
        this.idsByorderCtrType = idsByorderCtrType;
    }

    public String getoMediaSource() {
		return oMediaSource;
	}

	public void setoMediaSource(String oMediaSource) {
		this.oMediaSource = oMediaSource;
	}

	public String getoFAId() {
		return oFAId;
	}

	public void setoFAId(String oFAId) {
		this.oFAId = oFAId;
	}

	public String getoOwnerId() {
		return oOwnerId;
	}

	public void setoOwnerId(String oOwnerId) {
		this.oOwnerId = oOwnerId;
	}

	public BigDecimal getoYouDanRebate() {
		return oYouDanRebate;
	}
	public void setoYouDanRebate(BigDecimal oYouDanRebate) {
		this.oYouDanRebate = oYouDanRebate;
	}
	public BigDecimal getoYouDanPrice() {
		return oYouDanPrice;
	}
	public void setoYouDanPrice(BigDecimal oYouDanPrice) {
		this.oYouDanPrice = oYouDanPrice;
	}

	public BigDecimal getoYouDanReceiverRebate() {
		return oYouDanReceiverRebate;
	}

	public void setoYouDanReceiverRebate(BigDecimal oYouDanReceiverRebate) {
		this.oYouDanReceiverRebate = oYouDanReceiverRebate;
	}

	public String getoRebateBankId() {
		return oRebateBankId;
	}

	public void setoRebateBankId(String oRebateBankId) {
		this.oRebateBankId = oRebateBankId;
	}

	public String getoBackRebateBankId() {
		return oBackRebateBankId;
	}

	public void setoBackRebateBankId(String oBackRebateBankId) {
		this.oBackRebateBankId = oBackRebateBankId;
	}

	public String getoBackRebateBankCardHolder() {
		return oBackRebateBankCardHolder;
	}

	public void setoBackRebateBankCardHolder(String oBackRebateBankCardHolder) {
		this.oBackRebateBankCardHolder = oBackRebateBankCardHolder;
	}

	public String getoRebateBankCardHolder() {
		return oRebateBankCardHolder;
	}

	public void setoRebateBankCardHolder(String oRebateBankCardHolder) {
		this.oRebateBankCardHolder = oRebateBankCardHolder;
	}

	public String getoRebateBankCardNumber() {
		return oRebateBankCardNumber;
	}

	public void setoRebateBankCardNumber(String oRebateBankCardNumber) {
		this.oRebateBankCardNumber = oRebateBankCardNumber;
	}

	public String getoBackRebateBankCardNumber() {
		return oBackRebateBankCardNumber;
	}

	public void setoBackRebateBankCardNumber(String oBackRebateBankCardNumber) {
		this.oBackRebateBankCardNumber = oBackRebateBankCardNumber;
	}

	public String getoRebateType() {
		return oRebateType;
	}

	public void setoRebateType(String oRebateType) {
		this.oRebateType = oRebateType;
	}

	public String getoBackRebateType() {
		return oBackRebateType;
	}

	public void setoBackRebateType(String oBackRebateType) {
		this.oBackRebateType = oBackRebateType;
	}

	public String getoRebateOperateType() {
		return oRebateOperateType;
	}

	public void setoRebateOperateType(String oRebateOperateType) {
		this.oRebateOperateType = oRebateOperateType;
	}

	public String getoBackRebateOperateType() {
		return oBackRebateOperateType;
	}

	public void setoBackRebateOperateType(String oBackRebateOperateType) {
		this.oBackRebateOperateType = oBackRebateOperateType;
	}

	public String getoYouDanOperateType() {
		return oYouDanOperateType;
	}

	public void setoYouDanOperateType(String oYouDanOperateType) {
		this.oYouDanOperateType = oYouDanOperateType;
	}

	public String getoYouDanRebateType() {
		return oYouDanRebateType;
	}

	public void setoYouDanRebateType(String oYouDanRebateType) {
		this.oYouDanRebateType = oYouDanRebateType;
	}

	public String getSearchCriteria() {
		return searchCriteria;
	}

	public void setSearchCriteria(String searchCriteria) {
		this.searchCriteria = searchCriteria;
	}

	public String getSearchCriteriaQD() {
		return searchCriteriaQD;
	}

	public void setSearchCriteriaQD(String searchCriteriaQD) {
		this.searchCriteriaQD = searchCriteriaQD;
	}

	public String getSearchCriteriaCP() {
		return searchCriteriaCP;
	}

	public void setSearchCriteriaCP(String searchCriteriaCP) {
		this.searchCriteriaCP = searchCriteriaCP;
	}

	public String getContractStatus() {
		return contractStatus;
	}

	public void setContractStatus(String contractStatus) {
		this.contractStatus = contractStatus;
	}

	public boolean isBackApplyStatus() {
		return backApplyStatus;
	}

	public void setBackApplyStatus(boolean backApplyStatus) {
		this.backApplyStatus = backApplyStatus;
	}
}
